package com.huolian.calculator.service;

import com.huolian.calculator.entity.Student;

import java.sql.SQLOutput;
import java.util.Scanner;

public class StudentManager {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        //输入学生信息
        System.out.print("Enter name: ");
        String name = scanner.nextLine();
        System.out.print("Enter age: ");
        int age = scanner.nextInt();
        scanner.nextLine();//消费换行符
        System.out.print("Enter student ID: ");
        String studentID = scanner.nextLine();

        //创建学生对象并打印信息
        Student student = new Student(name, age, studentID);
        System.out.println(student.toString());
    }
}